

var ff = echarts.init(document.getElementById('data'));

option = {
        title: {
        text:'xl是最帅的',
            textStyle:{
                color:'gray',
                    fontsize:'20'
            },
            left:'left'
    },
    tooltip:{
        trigger:'axis',
        axisPointer:{
            type:'line',
            lineStyle:{
                color:'black'
            },
        },
    },
    xAxis: {
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    yAxis: {
        type: 'value'
    },
    series: [{
        data: [150, 230, 224, 218, 135, 147, 260],
        type: 'line'
    }]
};

ff.setOption(option)